package com.oa.business.user;

import com.oa.common.result.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("user")
public class UserController {

    @RequestMapping("info")
    public Result info(){
        Map<String,Object> info = new HashMap<>();
        info.put("name", "cuichao");
        info.put("roles",new String []{"admin"});
        info.put("introduction" ,"I am a super administrator");
        info.put("avatar", "https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif");
        return Result.success(info);
    }

}
